package com.quectel.core.module.propertybill.dto;

import com.quectel.core.module.village.dto.VillageBuildingDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author bob
 * @email bob.yu@quectel.com
 * @date 2023/03/31 14:36
 */
@Data
@Schema
public class PropertyChargeableListDto implements Serializable {

    /**
     * id
     */
    @Schema(description = "id")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
     * 小区id
     */
    @Schema(description = "小区id")
    private Long villageId;

    /**
     * 收费标准名称
     */
    @Schema(description = "收费标准名称")
    private String name;

    /**
     * 小区资源type 1.小区 2.楼栋
     */
    @Schema(description = "小区资源type 1.小区 2.楼栋")
    private Byte sourceType;

    /**
     * 收费周期设置 1.月付 2.季付 3.半年 4.一年
     */
    @Schema(description = "收费周期设置 1.月付 2.季付 3.半年 4.一年")
    private Byte cycleType;

    /**
     * 提前n天生成账单
     */
    @Schema(description = "提前n天生成账单")
    private Integer advanceDays;

    /**
     * 超过周期结束时间n天计算逾期
     */
    @Schema(description = "超过周期结束时间n天计算逾期")
    private Integer overdueDays;

    /**
     * 状态：0.禁用 1.启用
     */
    @Schema(description = "状态：0.禁用 1.启用")
    private Byte status;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String creator;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 修改人
     */
    @Schema(description = "修改人")
    private String editor;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private Date editTime;

    /************非数据库字段 start ************/
    @Schema(description = "已关联楼栋")
    private List<VillageBuildingDto> buildingList;

    @Schema(description = "已关联收费项目")
    private List<PropertyChargeableItemDto> itemList;

    @Schema(description = "小区名称")
    private String villageName;

    @Schema(description = "绑定的楼栋数量")
    private Integer bindBuildingCount;

    @Schema(description = "绑定的收费项目数量")
    private Integer bindItemCount;

    /************非数据库字段 end **************/
}
